#include <d3d9.h>
#include <d3dx9core.h>
#include "Application.h"

#pragma comment (lib, "d3dx9.lib")
#pragma comment (lib, "d3d9.lib")

class CAppDX9: public CApplication
{
    friend CApplication *CApplication::Create( int, int, API_VERSION );
private:
    LPDIRECT3D9         m_pD3DInterface;
    LPDIRECT3DDEVICE9   m_pD3DDevice;
    LPD3DXFONT          m_pFont;
    CAppDX9( int, int );

public:
    ~CAppDX9();
    static LPDIRECT3DDEVICE9 GetD3DDevice ( );
    virtual void RenderScene              ( );
    virtual void RenderText               ( RECT rect, char *fmt, ... );
};